package com.ledi.guns.common.persistence.model;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;

/**
 * <p>
 * </p>
 *
 * @author ledi
 * @since 2017-11-30
 */
@TableName("t_class_info")
@Data
public class ClassInfo extends Model<ClassInfo> {

	private static final long serialVersionUID = 1L;

	private Long id;
	@TableField("school_id")
	private Long schoolId;
	private String name;
	@TableField("school_year")
	private String schoolYear;
	@TableField("is_delete")
	private Integer isDelete;
	@TableField("create_time")
	private Date createTime;
	@TableField("creator_role")
	private String creatorRole;
	@TableField("creator_id")
	private Long creatorId;
	@TableField("update_time")
	private Date updateTime;
	@TableField("updater_role")
	private String updaterRole;
	@TableField("updater_id")
	private Long updaterId;

	@Version
	@TableField("version_no")
	private Integer versionNo;

	@TableField("order_num")
	private Integer orderNum;

	@TableField("grade_id")
	private Long gradeId;

	@Override
	protected Serializable pkVal() {

		return id;
	}

}
